﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/User.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<VERKProjectHopur16.Models.Child>>" %>
<%@ Import Namespace="VERKProjectHopur16.Helpers" %> 

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Lang.GetText("Menu", "Child_profile")%>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Lang.GetText("Menu", "Child_profile")%></h2>
    <div>
        <input type="button" onclick="document.location.href = '<%: Url.Action("CreateChild") %>'" value="<%: Lang.GetText("Menu", "Add_child")%>" />
    </div>
    
    <% foreach (var item in Model) 
    { %>
    <div class="qa">
        <strong>Name: <%: item.Name%></strong>
        <p>Date: of birth <%: item.BirthDate.ToString("dd MMMM yyyy")%></p>
        <p>About: <%: item.About%></p>
        <p>Access password: <%: item.ProfilePassword%></p>
        <p>Profile created: <%: item.Created%></p>
        <p>Owner: <%: item.aspnet_Membership.aspnet_User.UserName%></p>
        <div>
            <%= Html.ActionLink("View Timeline", "Timeline", new { id = item.ChildID })%>
        </div>
    </div>
    <% } %>

</asp:Content>

